package cn.lhjl.day04.bankserve;

import java.util.Date;

public class VipUser extends User {
    private String houseCode;
    private String carCode;

    public VipUser() {
    }


    public VipUser(String name, String sex, Date birthday, String idCard, String phoneNum, Account account, String houseCode, String carCode) {
        super(name, sex, birthday, idCard, phoneNum, account);
        this.houseCode = houseCode;
        this.carCode = carCode;
    }

    public String getHouseCode() {
        return houseCode;
    }

    public void setHouseCode(String houseCode) {
        this.houseCode = houseCode;
    }

    public String getCarCode() {
        return carCode;
    }

    public void setCarCode(String carCode) {
        this.carCode = carCode;
    }

    @Override
    public String toString() {
        return  super.toString()+
                "VipUser{" +
                "houseCode='" + houseCode + '\'' +
                ", carCode='" + carCode + '\'' +
                "} " ;
    }
    @Override
    public void saveMoney(double money){
        System.out.println("请您到VIP通道存款");
        super.saveMoney(money);
    }
    @Override
    public double receiveMoney(double money){
        System.out.println("请您到VIP通道取款");
        super.receiveMoney(money);
        return money;
    }

}
